package com.xiaoyang.system.domain.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoyang.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("tb_question")
public class Question extends BaseEntity {

    /**
     * 题目ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long questionId;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 题目难度
     */
    private Integer difficulty;

    /**
     * 时间限制
     */
    private Long timeLimit;

    /**
     * 空间限制
     */
    private Long spaceLimit;

    /**
     * 题目内容
     */
    private String content;

    /**
     * 样例
     */
    private String questionCase;

    /**
     * 默认代码
     */
    private String defaultCode;

    /**
     * 主函数
     */
    private String mainFuc;
}
